home *** CD-ROM | disk | FTP | other *** search
- TRAN, version 0.3
-
-
- TRAN is a text-to-speech program for the I.B.M.-P.C.. It can read ASCII
- (askey) text files, translate normal English spelling to phonemes, and
- sound out each phoneme through the internal speaker of the P.C. or to
- an 8-bit DAC on one of the P.C.'s I/O ports.
-
- usage: tran [ +|- flags] [-options] [file-name]
-
- The file-name is an ASCII text file (with no word processor formatting
- codes). If no file-name is given TRAN reads input from the keyboard; in
- this case the program can be terminated with CTRL-C. The flags and
- options control various features of the program. A '+' turns the flag
- on and a '-' turns the flag off. Options can use either '+' or '-'.
- The square brackets indicate default values.
-
- flags: + = on, - = off
- i use hardware interrupts to time the output [off]
- P type output of phoneme translation [off]
- r type rule number and phoneme translation [off]
- s say output (make sounds) [on]
- t echo input to console [off]
- T do phoneme translation [on]
- v type other internal information [off]
-
- options:
- c say the time of day once
- C say the time of day every 10 seconds
- D N dump single 8-bit phoneme N wave-form to file N.trn
- d1 N use N for space delay [5]
- d2 N use N for voice pitch [1]
- f N output 8-bit wave-form to binary file N
- R print all pronunciation rules
- p N output 8-bit wave-forms to DAC at port N
- where N = LPT1, LPT2, or LPT3 for a printer port
- or N = VMK1, VMK2, VMK3, or VMK4 for a COVOX VMK board
- or N = INT to use the internal speaker
- or N = the hexidecimal port number
- z print duration and loudness of each 8-bit phoneme
- ? type this summary of TRAN usage
-
-
- The following are examples of ways to use the TRAN program. You can
- have TRAN type out and read this file with the command:
-
- tran +t tran.doc
-
- If you also want to see the phoneme translation add the +P flag:
-
- tran +P +t tran.doc
-
- You can save the phoneme translation in a file by typing
-
- tran -s +P tran.doc > tran.phn
-
- and listen to the phoneme translation at some other time file by typing
-
- tran -T tran.phn
-
- The TRAN program will say (and type) the time of day once if you type
-
- tran +t +c
-
- or will continue to announce the time every 10 seconds if you type
-
- tran +t +C
-
- There are two timing parameters, d1 and d2, that control the rate that
- TRAN speaks. These are set automatically, but can be adjusted if
- necessary. Making d1 larger increases the pauses between words and
- making d2 larger lowers the pitch of the voice during phonemes. Both d1
- and d2 must have a value of 1 or greater. On an I.B.M.-P.C./X.T., the best
- values for the timing parameters are d1=2 and d2=1. Setting these
- values explicitly, by-passes the automatic setting, which saves a second
- or two starting the program. These values can be set on the command
- line
-
- tran -d1 2 -d2 1 ...
-
- or by using the environment variable TRAN to pass these values
-
- set TRAN= -d1 2 -d2 1
-
- Any of the other command line flags and options may also be set using
- this environment variable.
-
- The speech-to-text rules used in the TRAN program come mostly from an
- article in an IEEE journal:
-
- Elovitz, H.S., Johnson, R., McHugh, A., and Shore, J.E. (1976).
- "Letter-to-Sound Rules for Automatic Translation of English Text to
- Phonetics," IEEE Transactions on Acoustics, Speech, and Signal
- Processing, Vol. ASSP-24(6), pp 446-458.
-
- See the file RULES.TXT for a list of the rules used by the TRAN program.
-
- The TRAN program contains a set of 47 phonemes, each encoded both as a
- sequence of 1-bit values controlling the position (in or out) of the
- P.C. speaker and as a set of 8-bit values for generating the speech
- wave-form with a digital-to-analog convertor (DAC) available from COVOX
- in Eugene, Oregon. The 1-bit phoneme codes come from the public domain
- program SPEECH by Andy McGuire. The 8-bit phonemes were recorded with
- an 8-bit DAC (COVOX, voice master key). See the file PHONEMES.TXT for a
- list of the phonemes used by the TRAN program.
-
- Send your comments and suggestions to:
-
- Stephen T. Neely
- 11230 Ohio Street
- Omaha, NE 68164
- September, 1989
-